//
//  PropertyDetailVC.swift
//  Xiaozihui
//
//  Created by 校企荟 on 2017/8/28.
//  Copyright © 2017年 校企荟. All rights reserved.
//

import UIKit

class PropertyDetailVC: BaseVC {

    lazy var scrollView: UIScrollView = {
        let sv = UIScrollView(frame: CGRect(x: 0, y: 0, width: ScreenWidth, height: ScreenHeight))
        return sv
    }()
    
    lazy var iv : UIImageView = {
        let iv = UIImageView()
        iv.backgroundColor = UIColor.gray
        return iv
    }()
    
    lazy var nameLbl : UILabel = {
        return UILabel(content: "资产编号:103123556", textFont: UIFont.boldSystemFont(ofSize: 16 * ScaleX), color: XZHColor(red: 34, green: 34, blue: 34, alpha: 1), alignment: .center, numberOfLine: 2)
    }()
    
   
    
    lazy var recordBtn: UIButton = {
        let btn = UIButton()
        btn.setAttributedTitle(NSAttributedString(string: "维修记录", attributes: [NSForegroundColorAttributeName:UIColor.white,NSFontAttributeName:UIFont.systemFont(ofSize: 17 * ScaleX)]), for: .normal)
        btn.layer.cornerRadius = 5
        btn.layer.masksToBounds = true
        btn.backgroundColor = mainColor
        return btn
    }()
    
   
    
    override func viewDidLoad() {
        super.viewDidLoad()

        
        
        
        // Do any additional setup after loading the view.
    }

    override func setupUI() {
        view.addSubview(scrollView)
        scrollView.addSubview(iv)
        scrollView.addSubview(recordBtn)
        
        
      
       
        iv.snp.makeConstraints { (make) in
            make.left.top.right.equalTo(scrollView)
            make.width.equalTo(ScreenWidth)
            make.height.equalTo(283 * ScaleX)
        }
        
        recordBtn.snp.makeConstraints { (make) in
            make.left.equalTo(iv).offset(10)
            make.right.equalTo(iv).offset(-10)
            make.height.equalTo(50 * ScaleX)
            make.top.equalTo(iv.snp.bottom).offset(10)
            make.bottom.equalTo(scrollView)
        }
        
        
        
     
    }
}
